<%--
  User: Administrator  Date: 2021/11/2  Time: 16:24
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/";
%>
<html>
<head>
    <base href="<%=basePath%>">
    <title>添加新图书</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
</head>
<body>
<form name="form1" action="addBook"
      enctype="multipart/form-data" method="post">
    <table class="table  table-bordered">
        <tr>
            <td colspan="2" align="center"><h3>添加新图书</h3></td>
        </tr>

        <tr>
            <td>书名</td>
            <td><input type="text" name="name" /></td>
        </tr>
        <tr>
            <td>作者</td>
            <td><input type="text" name="author" /></td>
        </tr>
        <tr>
            <td>价格</td>
            <td><input type="text" name="price" /></td>
        </tr>
        <tr>
            <td>出版社</td>
            <td><input type="text" name="press" /></td>
        </tr>
        <tr>
            <td>ISBN</td>
            <td><input type="text" name="ISBN" /></td>
        </tr>

        <tr>
            <td>图片</td>
            <td><input type="file" name="pic" /></td>
        </tr>
        <tr>

            <td colspan="3" align="center"><input type="submit" value="添加" />
                <input type="button" value="清空" /></td>
        </tr>
    </table>

</form>
</body>
</html>
